<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Tdmq\V20200217\Models;
use TencentCloud\Common\AbstractModel;

/**
 * DescribeMsg response structure.
 *
 * @method string getProperties() Obtain Message attributes.
 * @method void setProperties(string $Properties) Set Message attributes.
 * @method string getBody() Obtain Message body.
 * @method void setBody(string $Body) Set Message body.
 * @method string getBatchId() Obtain Batch ID.
 * @method void setBatchId(string $BatchId) Set Batch ID.
 * @method string getProduceTime() Obtain Production time.
 * @method void setProduceTime(string $ProduceTime) Set Production time.
 * @method string getMsgId() Obtain Message ID.
 * @method void setMsgId(string $MsgId) Set Message ID.
 * @method string getProducerName() Obtain Producer name.
 * @method void setProducerName(string $ProducerName) Set Producer name.
 * @method string getKey() Obtain Message key
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setKey(string $Key) Set Message key
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getMetadata() Obtain Message metadata information.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setMetadata(string $Metadata) Set Message metadata information.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class DescribeMsgResponse extends AbstractModel
{
    /**
     * @var string Message attributes.
     */
    public $Properties;

    /**
     * @var string Message body.
     */
    public $Body;

    /**
     * @var string Batch ID.
     */
    public $BatchId;

    /**
     * @var string Production time.
     */
    public $ProduceTime;

    /**
     * @var string Message ID.
     */
    public $MsgId;

    /**
     * @var string Producer name.
     */
    public $ProducerName;

    /**
     * @var string Message key
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Key;

    /**
     * @var string Message metadata information.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Metadata;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param string $Properties Message attributes.
     * @param string $Body Message body.
     * @param string $BatchId Batch ID.
     * @param string $ProduceTime Production time.
     * @param string $MsgId Message ID.
     * @param string $ProducerName Producer name.
     * @param string $Key Message key
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $Metadata Message metadata information.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("Properties",$param) and $param["Properties"] !== null) {
            $this->Properties = $param["Properties"];
        }

        if (array_key_exists("Body",$param) and $param["Body"] !== null) {
            $this->Body = $param["Body"];
        }

        if (array_key_exists("BatchId",$param) and $param["BatchId"] !== null) {
            $this->BatchId = $param["BatchId"];
        }

        if (array_key_exists("ProduceTime",$param) and $param["ProduceTime"] !== null) {
            $this->ProduceTime = $param["ProduceTime"];
        }

        if (array_key_exists("MsgId",$param) and $param["MsgId"] !== null) {
            $this->MsgId = $param["MsgId"];
        }

        if (array_key_exists("ProducerName",$param) and $param["ProducerName"] !== null) {
            $this->ProducerName = $param["ProducerName"];
        }

        if (array_key_exists("Key",$param) and $param["Key"] !== null) {
            $this->Key = $param["Key"];
        }

        if (array_key_exists("Metadata",$param) and $param["Metadata"] !== null) {
            $this->Metadata = $param["Metadata"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
